package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.service.IStrategyReplyService;
import cn.wolfcode.trip.base.util.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/commentsRead")
public class CommentController {

    @Autowired
    private IStrategyReplyService strategyReplyService;


    /*标记已读*/
    @PostMapping
    public  Object setRead(Long id){
        strategyReplyService.setRead(id);
        return new JSONResult();
    }
}
